﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.MaHaiBo.Entity
{
    /// <summary>
    /// 请假申请
    /// </summary>
    [Table("Leave")]
    public class Leave
    {
        /// <summary>
        /// 申请编号
        /// </summary>
        [Key]
       public int Lid { get; set; }
        /// <summary>
        /// 请假人编号
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 请假人
        /// </summary>
       public string? UName { get; set; }
        /// <summary>
        /// 所属部门
        /// </summary>
       public int department { get; set; }
        /// <summary>
        /// 请假列表
        /// </summary>
        public string? Ltype {  get; set; } 
        /// <summary>
        /// 开始请假时间
        /// </summary>
        public DateTime? KAddtime { get; set; }
        /// <summary>
        /// 结束请假时间
        /// </summary>
        public DateTime? JAddtime { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public int GZTime { get; set; }
        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime BdTime { get; set; }
        /// <summary>
        /// 请假理由
        /// </summary>
        public string? LSdata { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public int? BTName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime AddTime { get; set; }=DateTime.Now;
        /// <summary>
        /// 审批状态
        /// </summary>
        public LeaveSdate LSdate { get; set; } =(LeaveSdate)10;

        /// <summary>
        ///不通过的理由
        /// </summary>
        public string? NotSdate { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
